#include <stdio.h>
int main(void){
	int count;
	double i,sum,average;
	sum = 0;
	count=0;
	do{
		printf("plz enter your contributions:\n");
		scanf("%lf",&i);
		sum = sum + i;
		count++;
	}
	while(count<=1000 && sum<=100000 && i>=0);
	average=sum/count;
	printf("COUNT=%d\nAVERAGE=%lf",count,average);
	return 0;
}
